package com.blog.boot.api.entity;

import com.blog.boot.api.annotation.AutoIncKey;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection="b_article")
public class ArticleEnity {
    @Id
    @AutoIncKey
    private Long id = 0L;
    private Integer uid;
    private String module;
    private String title;
    private String picture;
    private String content;
    private Integer stick;
    private Integer status;
    private Integer comment;
    private Integer iscomment;
    private Integer hits;
    private String tag;
    private Long time;
}